package com.fance.dao;

import com.fance.model.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author fance
 * @date 18-5-6 上午9:35
 */
@Mapper
public interface CommentDAO {

    List<Comment> selectByEntity(@Param("entityId") int entityId,@Param("entityType") int entityType);

    int addComment(Comment comment);

    int getCommentCount(@Param("entityId") int entityId, @Param("entityType") int entityType);

    int updateStatus(@Param("entityId") int entityId, @Param("entityType") int entityType, @Param("status") int status);
}
